const ky=[
    /(?<!\\)(\/\*([\s\S]*?)\*\/|(\/\/|#).*$)|(?<!\\)('|"|`)([\s\S]*?)(?<!\\)\4/gm,
    /((\\)(\S)|\b(null|true|false|\d+)\b)|((=|!|\.|\+|-|&gt;|\*|\/|\|\|)|\b(a(rray|s)|break|c(allable|ase|atch|onst|ontinue|lass)|d(eclare|efault|o)|e(cho|lse(if)?|num)|f(inal|inally|n|or(each)?|unction)|g(lobal|oto)|i(f|n(clude|terface)|mplements)|m(atch|amespace|never)|new|or|p(rint|rivate|rotected|ublic)|r(eadonly|equire|eturn)|s(elf|tatic|witch)|t(hrow|rait|ry)|use|while|yield)\b)/gi,
    /\b(\w+)(?=\s*\()|(\$(\w+))/g],
vl=[
    ['8292a2','e6db74'],
    ['ae81ff','f92672'],
    ['66d9ef','a6e22e']],
pre=(p)=>{let h=[];for(let i=0;i<ky.length;i++){p=p.replace(ky[i],(match,a,b)=>{let x=a?0:1,h2=`<LDR${h.length}_BS<`;h.push(`<span style="color:#${vl[i][x]}">${match}</span>`);return h2})}for(let i=h.length-1;i>=0;i--){let h2=`<LDR${i}_BS<`;p=p.replace(new RegExp(h2,'g'),h[i]);}return p}